<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>RKNPU DDK: Tensor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">RKNPU DDK
   &#160;<span id="projectnumber">1.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacerk.html">rk</a></li><li class="navelem"><a class="el" href="namespacerk_1_1nn.html">nn</a></li><li class="navelem"><a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Tensor Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="tensor_8h_source.html">tensor.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adc4bf6dc90c4b8ed355154753b2d9ed5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#adc4bf6dc90c4b8ed355154753b2d9ed5">Tensor</a> ()=default</td></tr>
<tr class="separator:adc4bf6dc90c4b8ed355154753b2d9ed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae55ef806b29ad70cd952e2c1508715ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#ae55ef806b29ad70cd952e2c1508715ae">~Tensor</a> ()=default</td></tr>
<tr class="separator:ae55ef806b29ad70cd952e2c1508715ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a722f2ec00b86cc6498f9638ced2d6796"><td class="memItemLeft" align="right" valign="top">virtual std::vector&lt; int32_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a722f2ec00b86cc6498f9638ced2d6796">GetDims</a> ()=0</td></tr>
<tr class="separator:a722f2ec00b86cc6498f9638ced2d6796"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7b4944df07afc86d550b0ee9ae6c45f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacerk_1_1nn.html#a13c421245f43fd2d7edd0e94c537965d">PrecisionType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#af7b4944df07afc86d550b0ee9ae6c45f">GetPrecision</a> ()=0</td></tr>
<tr class="separator:af7b4944df07afc86d550b0ee9ae6c45f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23488061963795be6f8341c5a9d3246a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacerk_1_1nn.html#a208f6d2ebb490c7877041482cf7da65c">DataLayoutType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a23488061963795be6f8341c5a9d3246a">GetLayoutType</a> ()=0</td></tr>
<tr class="separator:a23488061963795be6f8341c5a9d3246a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae20ad6ba616b8a2afed1e3538a75ed4a"><td class="memItemLeft" align="right" valign="top">virtual std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#ae20ad6ba616b8a2afed1e3538a75ed4a">GetName</a> ()=0</td></tr>
<tr class="separator:ae20ad6ba616b8a2afed1e3538a75ed4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d8b65cae7754b9490cb64866fad9bb6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacerk_1_1nn.html#ab7117a78440b149f5bec3994079bb08b">TensorRole</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a7d8b65cae7754b9490cb64866fad9bb6">GetRole</a> ()=0</td></tr>
<tr class="separator:a7d8b65cae7754b9490cb64866fad9bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91a31df352bbf7eb0a1efdbce046552a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a91a31df352bbf7eb0a1efdbce046552a">GetQntType</a> () const =0</td></tr>
<tr class="separator:a91a31df352bbf7eb0a1efdbce046552a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b6e25baf7ef4badf2fdd489e42a4e33"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a7b6e25baf7ef4badf2fdd489e42a4e33">GetQntBits</a> () const =0</td></tr>
<tr class="separator:a7b6e25baf7ef4badf2fdd489e42a4e33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2282b26961680f6db27fd69d9b88b97d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structrk_1_1nn_1_1_quantization_param_d_f_p.html">QuantizationParamDFP</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a2282b26961680f6db27fd69d9b88b97d">GetQntParamDFP</a> () const =0</td></tr>
<tr class="separator:a2282b26961680f6db27fd69d9b88b97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2265e8e971b860e43a0742b4c239cb2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structrk_1_1nn_1_1_quantization_param_affine_asymmetric.html">QuantizationParamAffineAsymmetric</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#ab2265e8e971b860e43a0742b4c239cb2">GetQntParamAffineAsymmetric</a> () const =0</td></tr>
<tr class="separator:ab2265e8e971b860e43a0742b4c239cb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfb3e2df54ead34bb716dd279af1c484"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structrk_1_1nn_1_1_quantization_param_symmetric.html">QuantizationParamSymmetric</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#abfb3e2df54ead34bb716dd279af1c484">GetQntParamSymmetric</a> () const =0</td></tr>
<tr class="separator:abfb3e2df54ead34bb716dd279af1c484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bf54ef4b865b43e230ebab8b1f286bf"><td class="memItemLeft" align="right" valign="top">virtual const std::shared_ptr&lt; const <a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a7bf54ef4b865b43e230ebab8b1f286bf">GetAttrs</a> ()=0</td></tr>
<tr class="separator:a7bf54ef4b865b43e230ebab8b1f286bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a346c0bd4892a6bf7fdb15b2204411da3"><td class="memItemLeft" align="right" valign="top">virtual const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a346c0bd4892a6bf7fdb15b2204411da3">GetData</a> ()=0</td></tr>
<tr class="separator:a346c0bd4892a6bf7fdb15b2204411da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaaddbcd9223f73590ca0f88f29a4ab9d"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#aaaddbcd9223f73590ca0f88f29a4ab9d">SetPrecision</a> (<a class="el" href="namespacerk_1_1nn.html#a13c421245f43fd2d7edd0e94c537965d">PrecisionType</a> precision)=0</td></tr>
<tr class="separator:aaaddbcd9223f73590ca0f88f29a4ab9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b90877df1d9813993eab1f6346eaa7a"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a5b90877df1d9813993eab1f6346eaa7a">SetName</a> (std::string &amp;name)=0</td></tr>
<tr class="separator:a5b90877df1d9813993eab1f6346eaa7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed7487eb7ed58aa3617928f4b54c0bce"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#aed7487eb7ed58aa3617928f4b54c0bce">SetRole</a> (<a class="el" href="namespacerk_1_1nn.html#ab7117a78440b149f5bec3994079bb08b">TensorRole</a> role)=0</td></tr>
<tr class="separator:aed7487eb7ed58aa3617928f4b54c0bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab087e90d1da9baaea4aad539e413c783"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#ab087e90d1da9baaea4aad539e413c783">SetQntParam</a> (<a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a> type, uint8_t bits, <a class="el" href="structrk_1_1nn_1_1_quantization_param_d_f_p.html">QuantizationParamDFP</a> &amp;dfp)=0</td></tr>
<tr class="separator:ab087e90d1da9baaea4aad539e413c783"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4a3dbee930e02ebb9f7072b6284a45b"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#ad4a3dbee930e02ebb9f7072b6284a45b">SetQntParam</a> (<a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a> type, uint8_t bits, <a class="el" href="structrk_1_1nn_1_1_quantization_param_affine_asymmetric.html">QuantizationParamAffineAsymmetric</a> &amp;affine_asymmetric)=0</td></tr>
<tr class="separator:ad4a3dbee930e02ebb9f7072b6284a45b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eeda0bbe5250361e5c3b3ff9c75dd5d"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrk_1_1nn_1_1_tensor.html#a0eeda0bbe5250361e5c3b3ff9c75dd5d">SetQntParam</a> (<a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a> type, uint8_t bits, <a class="el" href="structrk_1_1nn_1_1_quantization_param_symmetric.html">QuantizationParamSymmetric</a> &amp;symmetric)=0</td></tr>
<tr class="separator:a0eeda0bbe5250361e5c3b3ff9c75dd5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> is used to get and set imformation. and the <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> is returned by <a class="el" href="classrk_1_1nn_1_1_graph.html#a47037f219da7fa7b34b24451ee917898">Graph::CreateTensor</a>, don't create it directly. </p>

<p>Definition at line <a class="el" href="tensor_8h_source.html#l00111">111</a> of file <a class="el" href="tensor_8h_source.html">tensor.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="adc4bf6dc90c4b8ed355154753b2d9ed5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae55ef806b29ad70cd952e2c1508715ae"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">~<a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7bf54ef4b865b43e230ebab8b1f286bf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::shared_ptr&lt;const <a class="el" href="structrk_1_1nn_1_1_tensor_attr.html">TensorAttr</a>&gt; GetAttrs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the attributes of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the attributes of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a346c0bd4892a6bf7fdb15b2204411da3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const void* GetData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the data of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the pointer of data </dd></dl>

</div>
</div>
<a class="anchor" id="a722f2ec00b86cc6498f9638ced2d6796"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::vector&lt;int32_t&gt; GetDims </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the dimensions of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the dimensions of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a23488061963795be6f8341c5a9d3246a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacerk_1_1nn.html#a208f6d2ebb490c7877041482cf7da65c">DataLayoutType</a> GetLayoutType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the layout type of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the layout type of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae20ad6ba616b8a2afed1e3538a75ed4a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string&amp; GetName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the name of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the name of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af7b4944df07afc86d550b0ee9ae6c45f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacerk_1_1nn.html#a13c421245f43fd2d7edd0e94c537965d">PrecisionType</a> GetPrecision </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the precision of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the precision of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7b6e25baf7ef4badf2fdd489e42a4e33"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual uint8_t GetQntBits </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the Quantization Bits of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the Quantization Bits of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab2265e8e971b860e43a0742b4c239cb2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structrk_1_1nn_1_1_quantization_param_affine_asymmetric.html">QuantizationParamAffineAsymmetric</a> GetQntParamAffineAsymmetric </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the Affine Asymmetric Quantization parameters of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the Affine Asymmetric Quantization parameters of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2282b26961680f6db27fd69d9b88b97d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structrk_1_1nn_1_1_quantization_param_d_f_p.html">QuantizationParamDFP</a> GetQntParamDFP </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the Dynamic fixed point Quantization parameters of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the Dynamic fixed point Quantization parameters of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abfb3e2df54ead34bb716dd279af1c484"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structrk_1_1nn_1_1_quantization_param_symmetric.html">QuantizationParamSymmetric</a> GetQntParamSymmetric </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the Symmetric Quantization parameters of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the Symmetric Quantization parameters of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a91a31df352bbf7eb0a1efdbce046552a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a> GetQntType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the Quantization type of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the Quantization type of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7d8b65cae7754b9490cb64866fad9bb6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacerk_1_1nn.html#ab7117a78440b149f5bec3994079bb08b">TensorRole</a> GetRole </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the role of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the role of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5b90877df1d9813993eab1f6346eaa7a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SetName </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the name of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>[in] tensor name </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code </dd></dl>

</div>
</div>
<a class="anchor" id="aaaddbcd9223f73590ca0f88f29a4ab9d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SetPrecision </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacerk_1_1nn.html#a13c421245f43fd2d7edd0e94c537965d">PrecisionType</a>&#160;</td>
          <td class="paramname"><em>precision</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the precision of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">precision</td><td>[in] tensor precision type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code </dd></dl>

</div>
</div>
<a class="anchor" id="ab087e90d1da9baaea4aad539e413c783"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SetQntParam </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structrk_1_1nn_1_1_quantization_param_d_f_p.html">QuantizationParamDFP</a> &amp;&#160;</td>
          <td class="paramname"><em>dfp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the quantization type and the DFP parameter of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>[in] quantization type </td></tr>
    <tr><td class="paramname">bits</td><td>[in] quantization bits </td></tr>
    <tr><td class="paramname">dfp</td><td>[in] quantization parameter of DFP </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code </dd></dl>

</div>
</div>
<a class="anchor" id="ad4a3dbee930e02ebb9f7072b6284a45b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SetQntParam </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structrk_1_1nn_1_1_quantization_param_affine_asymmetric.html">QuantizationParamAffineAsymmetric</a> &amp;&#160;</td>
          <td class="paramname"><em>affine_asymmetric</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the quantization type and the affine asymmetric parameter of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>[in] quantization type </td></tr>
    <tr><td class="paramname">bits</td><td>[in] quantization bits </td></tr>
    <tr><td class="paramname">affine_asymmetric</td><td>[in] quantization parameter of affine asymmetric </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code </dd></dl>

</div>
</div>
<a class="anchor" id="a0eeda0bbe5250361e5c3b3ff9c75dd5d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SetQntParam </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacerk_1_1nn.html#a0a46b5533bfcf042c3091803849e5e7b">QuantizationType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structrk_1_1nn_1_1_quantization_param_symmetric.html">QuantizationParamSymmetric</a> &amp;&#160;</td>
          <td class="paramname"><em>symmetric</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the quantization type and the symmetric parameter of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>[in] quantization type </td></tr>
    <tr><td class="paramname">bits</td><td>[in] quantization bits </td></tr>
    <tr><td class="paramname">symmetric</td><td>[in] quantization parameter of symmetric </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code </dd></dl>

</div>
</div>
<a class="anchor" id="aed7487eb7ed58aa3617928f4b54c0bce"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SetRole </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacerk_1_1nn.html#ab7117a78440b149f5bec3994079bb08b">TensorRole</a>&#160;</td>
          <td class="paramname"><em>role</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the role of <a class="el" href="classrk_1_1nn_1_1_tensor.html">Tensor</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">role</td><td>[in] tensor role </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="tensor_8h_source.html">tensor.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
